/**
 * ReportGear(2011)
 */
package com.reportgear.designer.gui.config;

import java.util.Map;

import javax.swing.ButtonGroup;
import javax.swing.JPopupMenu;
import javax.swing.JToolBar;

/**
 * 快捷键
 * 
 * @version 1.0 2011-4-26
 * @author <a herf="lexloo@gmail.com">lexloo</a>
 * @since Report 1.0
 */
public abstract class ShortCut {
	public abstract boolean intercept2JPopupMenu();

	public abstract void intoJPopupMenu(JPopupMenu popMenu);

	public abstract boolean intercept2JToolBar();

	public abstract void intoJToolBar(JToolBar toolbar, Map<String, ButtonGroup> btnGroupMap);

	public abstract void setEnabled(boolean enabled);

	public abstract boolean isEnabled();

	public ShortCut clone() {
		try {
			return (ShortCut) super.clone();
		} catch (CloneNotSupportedException e) {
			throw new InternalError();
		}
	}
}
